package com.wxzhou.wangzhuan.config;

import jakarta.enterprise.context.ApplicationScoped;
import org.eclipse.microprofile.config.inject.ConfigProperty;

/**
 * 系统配置，如：换算比例等
 */
@ApplicationScoped
public class SysConfig {

    /**
     * RMB和金币的换算比例
     * 1RMB=多少金币。
     */
    @ConfigProperty(name = "convert.ratio", defaultValue = "10000")
    Integer convertRatio;

    public Integer getConvertRatio() {
        return convertRatio;
    }

    public void setConvertRatio(Integer convertRatio) {
        this.convertRatio = convertRatio;
    }
}
